package com.ptszyxx.popose.module.main.mine.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder;
import com.ptszyxx.popose.R;
import com.ptszyxx.popose.databinding.ItemMineCharmBinding;
import com.ysg.http.data.entity.mine.CharmEntity;

public class MineCharmAdapter extends BaseQuickAdapter<CharmEntity, BaseDataBindingHolder<ItemMineCharmBinding>> {

    public MineCharmAdapter() {
        super(R.layout.item_mine_charm);
    }

    @Override
    protected void convert(BaseDataBindingHolder<ItemMineCharmBinding> holder, CharmEntity item) {
        ItemMineCharmBinding binding = holder.getDataBinding();
        if (binding != null) {
            binding.setEntity(item);
            binding.executePendingBindings();
        }
    }

    public static class Presenter{
//        public void onItemClick(MineDynamicVM viewModel, DynamicResult entity){
//            viewModel.jumpDynamicDetail(entity);
//        }
    }








}
